﻿using ERPPublic;
using SqlSugar;

namespace ProductionManagement.Domain.ProductionDomain
{
    /// <summary>
    /// 生产派工
    /// </summary>
    /// 
    [SugarTable("Dispatch")]
    public class Dispatch : Audit
    {
        /// <summary>
        /// 生产派工id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int DispatchId { get; set; }
        /// <summary>
        /// 生产派工编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? DNumber { get; set; }
        /// <summary>
        /// 生产派工主题
        /// </summary>
        /// 
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度

        public string? DisTopic { get; set; }
        /// <summary>
        /// 领料状态
        /// </summary>
        public int? DPickState { get; set; }
        /// <summary>
        /// 物料登记状态
        /// </summary>
        public int? DMaterState { get; set; }
        public string? MSubject { get; set; }
        /// <summary>
        /// 派工状态
        /// </summary>
        public int? DState { get; set; }
        /// <summary>
        /// 仓库入库id
        /// </summary>
        public int? WarehouseStorageId { get; set; }
        /// <summary>
        /// 人员档案id
        /// </summary>
        public int? ManpowerId { get; set; }
        /// <summary>
        /// 被派工人员
        /// </summary>
        public string? ManpowerName { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductId { get; set; }
        /// <summary>
        /// 已派工数量
        /// </summary>
        public int? DAlreadyNum { get; set; }
        /// <summary>
        /// 本次派工数量
        /// </summary>
        public int? DThisNum { get; set; }
        /// <summary>
        /// 派工产品
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? DispatchProd { get; set; }

    }
}
